package text;

import java.io.File;
import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入要删除的目录名");
        String str = scan.nextLine();
        File file = new File(str);
        file.delete();
        System.out.println("删除完毕");

    }
}
